package org.example.myleet.p462;

import org.example.myleet.Utils.Assert;

public class Main {
    public static void main(String[] args) {
        Solution solution = new Solution();
        Assert.isTrue(2 == solution.minMoves2(new int[]{1,2,3}));
        Assert.isTrue(16 == solution.minMoves2(new int[]{1,10,2,9}));
        Assert.isTrue(3 == solution.minMoves2(new int[]{2,2,2,2,2,5}));
        Assert.isTrue(5 == solution.minMoves2(new int[]{2,2,4,2,2,5}));
    }
}
